const fs = require('fs');

fs.writeFile('./fspract/ts.txt', './fspract/1.html', (err) => {
    if (err) {
        console.log('写入失败');
        throw err;
    } else {
        console.log('成功写入');
        fs.readFile('./fspract/ts.txt', 'utf-8', (err, data) => {
            console.log('data', data);
        });
    }
});
